import React, { Component } from "react";
import { Tabs  } from 'antd';
import PsDetail from './psDetail';
import StationQuery from './stationQuery';

const TabPane = Tabs.TabPane;
class StubQueryIndex extends Component {
    constructor(props) {
        super(props);
    }

    render() {
    	const content = 
			<Tabs type="card">
				<TabPane tab="电站查询" key="stationQuery">
					<StationQuery onAdd={this.props.onAdd}/>
				</TabPane>
				<TabPane tab="目的地查询" key="psDetail">
					<PsDetail  onAdd={this.props.onAdd}/>
				</TabPane>
			</Tabs>
        return content
    }
}

export default StubQueryIndex;